<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
String pages = path+"/pages/home";
String css = pages+"/css";
String js = pages+"/js";
String img = "/fw/css/images";
%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>代理商系统</title>
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
	<link rel="stylesheet" type="text/css" href="/fw/css/bootStrap/bootstrap.min.css">
	<link rel="stylesheet" type="text/css" href="<%=css %>/mycss/common.css">
	<link rel="stylesheet" type="text/css" href="<%=css %>/menu.css">
	<script type="text/javascript" src="<%=js %>/menu.js"> </script>
	<script>
		$(window).ready(function(){
			var email = "${session.userName}";
			if(email != null && email != "" && email.indexOf("@") != -1){
				var t2_em = email.split("@");
				var end_msg = "";
				var t_0 = t2_em[0];
				if(t_0.length < 10 && t_0.length >= 6){
					end_msg += t_0.substring(0,1)+"****";
					end_msg += t_0.substring(5,t_0.length);
				}else if(t_0.length >= 10){
					end_msg += t_0.substring(0,3)+"****";
					end_msg += t_0.substring(7,t_0.length);
				} else if(t_0.length < 6){
					end_msg = t_0;
				}
				$("#the_userName").html(end_msg+"@"+t2_em[1]);
			}
		});
			
	</script>
  </head>
  
  <body>
	
	<div class='top_menus'>
		<div class='left'>
			<img src='<%=img %>/logo.jpg' onclick="goOtherPage()"/>
		</div>
		<div class='menus'>
			<c:if test="${session.userName != null}">
				<div class='no_user'>
					<div class="right_btn ggCOlor" onclick="javascript:window.location='/fw${session.loginUrl}'" >
					</div>
					<div class="right_btn firse" onclick="out_login()">
					</div>
				</div>
			</c:if>
			<div id='personalConfigure'class='menu menu7'></div>
			<div class='clear'></div>
		</div>
		<div class='clear'></div>
	</div>
  </body>
</html>
